package com.example.demo_job.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data // 可以自动添加get和set方法
@AllArgsConstructor  // 全参构造方法
@NoArgsConstructor   // 空参构造方法
public class PositionRescruit {
    private int pid;
    private int cid;
    private String pname;
    private String pinfo;
    private double salary;
    private int hot;
    private String paddress;
    private int enumber;
    private int anumber;
    //申请人数
    private int applynum=0;
    public PositionRescruit(Position position,int applynum){
        this.pid=position.getPid();
        this.cid=position.getCid();
        this.pname=position.getPname();
        this.pinfo=position.getPinfo();
        this.salary=position.getSalary();
        this.hot=position.getHot();
        this.paddress=position.getPaddress();
        this.enumber=position.getEnumber();
        this.anumber=position.getAnumber();
        this.applynum=applynum;  // 申请人数
    }
}
